package edu.chl.da.ejb.ctrl;

import edu.chl.da.ejb.core.Airplane;
import edu.chl.da.ejb.core.Seat;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author Max
 */
@Remote
public interface IManageAirplane {
    public Airplane createAirplane(String model);
    public void createSeatsForAirplane(Airplane a);
    public Airplane editAirplane(Airplane Airplane);
    public boolean removeAirplane(Airplane Airplane);
    public Seat addSeat(Airplane airplane, Seat seat);
    public boolean removeSeat(Seat seat);
    public List<Seat> getSeatList(Airplane airplane);
    public Airplane getAirplaneByID(Integer id);
    public List<Airplane> getAllAirplanes();
}
